Optimal. Leaf size=96 \[ \frac {2}{3 \sqrt {1+x} \sqrt {1-x+x^2}}+\frac {2}{9 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )}-\frac {2 \sqrt {1+x^3} \tanh ^{-1}\left (\sqrt {1+x^3}\right )}{3 \sqrt {1+x} \sqrt {1-x+x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {929, 272, 53,
65, 213} \begin {gather*} \frac {2}{3 \sqrt {x+1} \sqrt {x^2-x+1}}+\frac {2}{9 \sqrt {x+1} \sqrt {x^2-x+1} \left (x^3+1\right )}-\frac {2 \sqrt {x^3+1} \tanh ^{-1}\left (\sqrt {x^3+1}\right )}{3 \sqrt {x+1} \sqrt {x^2-x+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 53
Rule 65
Rule 213
Rule 272
Rule 929
Rubi steps
\begin {align*} \int \frac {1}{x (1+x)^{5/2} \left (1-x+x^2\right )^{5/2}} \, dx &=\frac {\sqrt {1+x^3} \int \frac {1}{x \left (1+x^3\right )^{5/2}} \, dx}{\sqrt {1+x} \sqrt {1-x+x^2}}\\ &=\frac {\sqrt {1+x^3} \text {Subst}\left (\int \frac {1}{x (1+x)^{5/2}} \, dx,x,x^3\right )}{3 \sqrt {1+x} \sqrt {1-x+x^2}}\\ &=\frac {2}{9 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )}+\frac {\sqrt {1+x^3} \text {Subst}\left (\int \frac {1}{x (1+x)^{3/2}} \, dx,x,x^3\right )}{3 \sqrt {1+x} \sqrt {1-x+x^2}}\\ &=\frac {2}{3 \sqrt {1+x} \sqrt {1-x+x^2}}+\frac {2}{9 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )}+\frac {\sqrt {1+x^3} \text {Subst}\left (\int \frac {1}{x \sqrt {1+x}} \, dx,x,x^3\right )}{3 \sqrt {1+x} \sqrt {1-x+x^2}}\\ &=\frac {2}{3 \sqrt {1+x} \sqrt {1-x+x^2}}+\frac {2}{9 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )}+\frac {\left (2 \sqrt {1+x^3}\right ) \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {1+x^3}\right )}{3 \sqrt {1+x} \sqrt {1-x+x^2}}\\ &=\frac {2}{3 \sqrt {1+x} \sqrt {1-x+x^2}}+\frac {2}{9 \sqrt {1+x} \sqrt {1-x+x^2} \left (1+x^3\right )}-\frac {2 \sqrt {1+x^3} \tanh ^{-1}\left (\sqrt {1+x^3}\right )}{3 \sqrt {1+x} \sqrt {1-x+x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 10.09, size = 95, normalized size = 0.99 \begin {gather*} \frac {\frac {2 \left (4+3 x^3\right )}{3 (1+x)^{3/2} \left (1-x+x^2\right )}-2 (1+x) \sqrt {\frac {1-x+x^2}{(1+x)^2}} \tanh ^{-1}\left (\frac {1}{(1+x)^{3/2} \sqrt {\frac {1-x+x^2}{(1+x)^2}}}\right )}{3 \sqrt {1-x+x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 69, normalized size = 0.72
method | result | size |
elliptic | \(\frac {\sqrt {\left (1+x \right ) \left (x^{2}-x +1\right )}\, \left (\frac {2}{9 \left (x^{3}+1\right )^{\frac {3}{2}}}+\frac {2}{3 \sqrt {x^{3}+1}}-\frac {2 \arctanh \left (\sqrt {x^{3}+1}\right )}{3}\right )}{\sqrt {1+x}\, \sqrt {x^{2}-x +1}}\) | \(60\) |
default | \(-\frac {2 \left (3 \sqrt {x^{3}+1}\, \arctanh \left (\sqrt {x^{3}+1}\right ) x^{3}-3 x^{3}+3 \arctanh \left (\sqrt {x^{3}+1}\right ) \sqrt {x^{3}+1}-4\right )}{9 \left (x^{3}+1\right ) \sqrt {x^{2}-x +1}\, \sqrt {1+x}}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.41, size = 101, normalized size = 1.05 \begin {gather*} \frac {2 \, {\left (3 \, x^{3} + 4\right )} \sqrt {x^{2} - x + 1} \sqrt {x + 1} - 3 \, {\left (x^{6} + 2 \, x^{3} + 1\right )} \log \left (\sqrt {x^{2} - x + 1} \sqrt {x + 1} + 1\right ) + 3 \, {\left (x^{6} + 2 \, x^{3} + 1\right )} \log \left (\sqrt {x^{2} - x + 1} \sqrt {x + 1} - 1\right )}{9 \, {\left (x^{6} + 2 \, x^{3} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \left (x + 1\right )^{\frac {5}{2}} \left (x^{2} - x + 1\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{x\,{\left (x+1\right )}^{5/2}\,{\left (x^2-x+1\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________